<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://primefaces.org/ui"
       xmlns:cc="http://java.sun.com/jsf/composite">
	      
	     <!--INFERFACE-->
	     <cc:interface>  
	         <cc:attribute name="textSize" /> 	  
	         <cc:attribute name="textMaxLength" />   
	         <cc:attribute name="textValue" />  
	         <cc:attribute name="textStyle" />       
	         <cc:attribute name="isOnlyRead" />  
	         <cc:attribute name="waterMark" />  
	     </cc:interface>  
	     
	     <!--IMPLEMENTATION--> 
	     <cc:implementation>  
	            
               <p:inputText id="inputText"
                            rendered="#{!cc.attrs.isOnlyRead}" 
                            value="#{cc.attrs.textValue}"
                            size="#{empty cc.attrs.textSize ? '10' : cc.attrs.textSize}"
                            maxlength="#{cc.attrs.textMaxLength ? '10' : cc.attrs.textMaxLength}"/>
               <h:outputText rendered="#{cc.attrs.isOnlyRead}" 
                             value="#{cc.attrs.textValue}"
                             styleClass="{cc.attrs.textStyle}"/>   
               <p:watermark for="inputText" value="#{cc.attrs.waterMark}" />                                               
	           
	     </cc:implementation>  
     
 </html>     
